package com.fenggo.platform.ordering.service;

import com.fenggo.platform.ordering.domain.Order;
import com.fenggo.platform.ordering.repository.OrderRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by huan on 2017/6/27.
 * <p>
 * since jdk1.8
 * <p>
 * 订单服务
 */
@Slf4j
@Service
public class OrderService {

    @Autowired
    private OrderRepository orderRepository;

    public Order findByOrder(String orderNo){
        return orderRepository.findByOrderNO(orderNo);
    }
}

